package com.jyniubi.core.service;

import com.jyniubi.core.pojo.entity.BorrowInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jyniubi.core.pojo.vo.BorrowInfoApprovalVO;
import com.jyniubi.core.pojo.vo.BorrowInfoVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 借款信息表 服务类
 * </p>
 *
 * @author jyzhang
 * @since 2024-04-27
 */
public interface BorrowInfoService extends IService<BorrowInfo> {

    void saveBorrowInfo(BorrowInfo borrowInfo, Long userId);

    Integer getBorrowStatus(Long userId);

    List<BorrowInfoVO> getBorrowInfoVOs();

    Map<String, Object> getBorrowInfoDetails(String id);

    void approval(BorrowInfoApprovalVO borrowInfoApprovalVO);
}
